package com.meevle.business
{
	import com.adobe.cairngorm.business.ServiceLocator;
	import com.meevle.vo.*;
	
	import mx.rpc.IResponder;
	
	
	public class SetDelegate 
	{
		private var responder:IResponder;
		private var service:Object;
		
		public function SetDelegate(responder:IResponder)
		{
			this.responder = responder;
			this.service = ServiceLocator.getInstance().getRemoteObject("setDelegateService");
		}
		
		public function getSetList() : void {
			var call:Object = service.getAllSets();
			call.addResponder(responder);
		}
		
		public function createSet(m_set:SetVO) : void {
			var call:Object = service.createSet(m_set);
			call.addResponder(responder);
		}

		public function getSlots(m_set:SetVO) : void {
			var call:Object = service.getSlots(m_set);
			call.addResponder(responder);
		}
		
		public function removeSlotFromSet(slot:SlotVO, m_set:SetVO) : void 
		{
			var call:Object = service.removeSlotFromSet(slot, m_set);
			call.addResponder(responder);
		}

	}
}